package com.level.restful.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

/**
 * 
 * 
 * @author
 * @email
 * @date 2021-01-24 15:25:41
 */
@Data
@TableName("t_buy_goods")
public class TBuyGoods extends Model<TBuyGoods> {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 商品id
	 */
	@TableField("goods_id")
	private Integer goodsId;
	/**
	 * 购买人id
	 */
	@TableField("member_id")
	private Integer memberId;
	/**
	 * 创建时间 (不设置数量，一次商品默认为1件)
	 */
	@TableField("create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	
	/**
	 * 购物地址
	 */
	@TableField("address")
	private String address;

}